From: Po Lu Date: Tue, 1 Mar 2022 12:15:02 +0000 (+0800) Subject: Add PropertyChangeMask to the standard event set X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2501 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e361d0d7e5d3db8575d5d8673012aa4d7448ee54;p=emacs.git Add PropertyChangeMask to the standard event set * src/xfns.c (x_window): Remove special Motif code. * src/xterm.h (STANDARD_EVENT_SET): Add PropertyChangeMask. --- diff --git a/src/xfns.c b/src/xfns.c index 09bad715025..65218b3fc07 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3803,13 +3803,8 @@ x_window (struct frame *f, long window_prompting) FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols, XA_ATOM, 32, PropModeAppend, NULL, 0); -#if !defined USE_MOTIF || !defined HAVE_XINPUT2 /* Make all the standard events reach the Emacs frame. */ attributes.event_mask = STANDARD_EVENT_SET; -#else - /* This is used for Motif menus. */ - attributes.event_mask = STANDARD_EVENT_SET | PropertyChangeMask; -#endif #ifdef HAVE_X_I18N if (FRAME_XIC (f)) diff --git a/src/xterm.h b/src/xterm.h index f6c251649ff..7f45e2f172e 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -132,6 +132,7 @@ INLINE_HEADER_BEGIN | FocusChangeMask \ | LeaveWindowMask \ | EnterWindowMask \ + | PropertyChangeMask \ | VisibilityChangeMask) #ifdef HAVE_X11R6_XIM